//
//  MMBProgressView.h
//  MMBangADDemoProject
//
//  Created by CuiPanJun on 14-7-28.
//  Copyright (c) 2014年 CuiPanJun. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, MMBProgressViewStyle){
    MMBProgressViewStylePlain           = 0,
    MMBProgressViewStyleRoundBorder,
    MMBProgressViewStyleRoundDoubleBorder
};

@interface MMBProgressView : UIView

@property(nonatomic, assign) float progress;
@property(nonatomic, assign) MMBProgressViewStyle style;
@property(nonatomic, strong) UIImage* progressImage ;
@property(nonatomic, strong) UIImage* trackImage ;

- (id)initWithFrame:(CGRect)frame style:(MMBProgressViewStyle)style;
- (void)setProgress:(CGFloat)progress animated:(BOOL)animated;
// If call progressImage Property Setter ,assume imageIsPattern is NO.
- (void)setProgressImage:(UIImage *)progressImage isPattern:(BOOL)imageIsPattern;

@end
